package com.openflag.clientservice.repository;

import com.openflag.clientservice.domain.Client;
import org.hibernate.annotations.SQLInsert;
import org.hibernate.service.spi.InjectService;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Optional;

public interface ClientRepository extends JpaRepository<Client,Long> {

    @Query(value = "select position from client where id = ?1",nativeQuery = true)
    Integer getPosition(Long ClientId);

}
